#include <iostream>
#include <iomanip>
#include <ctype.h>
#include <stdio.h>

using namespace std;

#define MOD123  123
#define MOD91   91

int main_0012(void)
{
    int n, key1, key2;

    cin >> n;

    key1 = n % MOD123;
    key2 = n % MOD91;
    if(islower(key1)) {
        putchar(key1);
    } else if(isupper(key2)) {
        putchar(key2);
    } else {
        putchar('*');
    }

    return 0;
}
